import { getTeachingResearchReport} from '../../../api/teachingResearch'
Page({

  /**
   * 页面的初始数据
   */
  data: {
    activityId: '',//活动ID
    detailDate:{}
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (e) {
    this.setData({
      activityId: e.activityId
    })
    // this.setData({
    //   activityId: '1267660712885379073'
    // })
    this.init(this.data.activityId)
  },
  init(activityId){
    this.getTeachingResearchReport(activityId)
  },
  async getTeachingResearchReport(activityId){
    let params = {
      activityId: activityId
    }
    let res = await getTeachingResearchReport(params)
    this.setData({
      detailDate: res
    })
  }

})
